class Solution:
    def isNumber(self, s: str) -> bool:
        if s.isalpha() or s[1:].isalpha():
            return False
        try:
            num_1 = float(s)
            if type(num_1) != int and type(num_1) != float:
                return False
            return True

        except:
            return False
